-- GENERATED SPELL FOR [Protean Spawn] --


function spell0_21395(pUnit, Event) --@Acidic Bite,n/a--
pUnit:FullCastSpellOnTarget(36796,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21395', 30344, 1)
end

function Sorts_21395(pUnit, Event)
local choix_sorts_21395 = math.random(0, 0)
if choix_sorts_21395 == 0 then
pUnit:RegisterEvent('spell0_21395', 1, 1)
end
end

function mob21395_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21395', math.random(1500, 3000), 1)
end

function mob21395_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21395_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21395_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21395, 1, 'mob21395_Action')
RegisterUnitEvent(21395, 2, 'mob21395_Leave')
RegisterUnitEvent(21395, 3, 'mob21395_Kill')
RegisterUnitEvent(21395, 4, 'mob21395_Die')
